package be.darling.scrt.data;

/**
 * Created by IntelliJ IDEA.
 * User: geert
 * Date: Nov 20, 2007
 * Time: 8:46:28 PM
 * To change this template use File | Settings | File Templates.
 */
public class Value {

    double[] v;
    // enkel doubles ??
    // lookupHashMap?

    // missingValue ?? 

    String info; // remarks

    public Value(double[] v) {
        this.v = v;
    }

    public Value(double v) {  // univariate
        this.v = new double[1];
        this.v[0] = v;
    }

    public String toString() {
        return String.valueOf(v[0]);
    }

    public double getValue() {
        return v[0];
    }

    public double getValue(int index) {
        return v[index];
    }
}
